package com.job.GaoYuXuan.Homework0705;

/**
 * @author 盖
 * @version 1.0
 * @since 2022-07-05 17:20:18
 */
public class Job0705ClassExample {
    public static void main(String[] args) {
        Job0705Student student1 = new Job0705Student("Tracy",100,99,98,95);
        Job0705Student student2 = new Job0705Student("John",89,95,75,96);
        Job0705Student student3 = new Job0705Student("Tony",66,80,86,90);
        System.out.println("Tracy's Java score is :" + student1.java);
        System.out.println("John's Java score is :" + student2.java);
        System.out.println("Tony's Java score is :" + student3.java);
        student2 = null;
        System.out.println("Tracy's Java score is :" + student1.java);
        //报错：System.out.println("John's Java score is :" + student2.java);
        System.out.println("Tony's Java score is :" + student3.java);
    }
}